package com.clss.commandhelper.base;

import com.google.gson.JsonElement;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 服务器返回的基类
 * Created by Liuv on 2017/4/12.
 */

public class BaseJson implements Serializable {

    public Boolean status = false; // 状态

    public Integer code;	//信息编号

    public String error;	//错误信息

    public JsonElement obj;

    public List<JsonElement> list = new ArrayList<JsonElement>();

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public JsonElement getObj() {
        return obj;
    }

    public void setObj(JsonElement obj) {
        this.obj = obj;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "BaseJson{" +
                "status=" + status +
                ", code=" + code +
                ", error='" + error + '\'' +
                ", obj=" + obj +
                ", list=" + list +
                '}';
    }
}
